<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="../assets/favicon.ico">
<title>source\jindo.CheckBox.js - Jindo Component - AjaxUI@NHN</title>
<link rel="stylesheet" type="text/css" href="../assets/prettify/prettify-min.css" media="screen">
<script type="text/javascript">
	var isMobile = (function() {
		var r = window.devicePixelRatio || 1;
		if (/windows phone/i.test(navigator.userAgent)) { r = 2; }
		
		var s = Math.max(screen.width / r, screen.height / r);
		
		var m = s < 1024;
		var href = m ? "api.mobile.css" : "api.css";
		document.write('<link rel="stylesheet" type="text/css" href="../assets/' + href + '" media="screen">');
		
		return m;
	})();
</script>

<script type="text/javascript" src="../assets/jindo.desktop.min.js"></script>
<script type="text/javascript" src="../assets/jindo_component.min.js"></script>
</head>
<body class="api-page">
<div id="wrap" class="api-main"><!-- 2Depth 접기 : lft_fold 추가 -->

	<div id="header">
		<h1><a href="../index.html"><span class="blind">JindoJS</span></a></h1>
		<div class="info">
			<span class="version">version 1.6.0</span>
			<span class="bar">|</span>
			<span class="help"><span class="ic_help"></span><a href="http://devcode.nhncorp.com/projects/jindo-component/issue" target="_blank">버그신고/문의</a></span>
		</div>
		<div class="menu">
			<button type="button" id="toggle_search_btn" class="btn_sch"><span class="blind">검색</span></button>
			<button type="button" id="toggle_list_btn" class="btn_snb btn_snb_on"><span class="blind">메뉴</span></button>
			<!-- [D] 클릭시 btn_sch_on,btn_snb_on 추가 -->
		</div>
	</div>

	<!-- sch_frm -->
	<div class="sch_frm hide_when_small">
		<h2 class="blind">검색</h2>
		<div class="filter">
			<input type="search" id="api-filter" placeholder="검색어를 입력하세요.">
		</div>
		<div id="search-tab" style="display:none;">
			<ul class="tabs">
			<li class="tc-tab">전체</li>
			<li class="tc-tab">키워드</li>
			<li class="tc-tab">클래스</li>
			<li class="tc-tab">메서드</li>
			<li class="tc-tab">프로퍼티</li>
			<li class="tc-tab">이벤트</li>
			</ul>
			<div class="panels">
				<ul id="api-all" class="tc-panel"></ul>
				<ul id="api-keywords" class="tc-panel"></ul>
				<ul id="api-classes" class="tc-panel"></ul>
				<ul id="api-methods" class="tc-panel"></ul>
				<ul id="api-attrs" class="tc-panel"></ul>
				<ul id="api-events" class="tc-panel"></ul>
			</div>

		</div>
	</div>
	<!-- // sch_frm -->

	<!-- container -->
	<div id="container">
		<!-- left-columns -->
		<div id="left-columns" class="sidemenu has_scrollbar">
			<h2 class="blind"><a href="../index.html"><span>APIs</span></a></h2>
<div class="snb depth1 scrollbar hide_when_small">
	<!-- [D] style="width:135px; height:384px; -->
	<div class="scrollbar-box">
		<div class="scrollbar-content">
			<div><ul>
			            <li class="">
			            	<a href="../classes/jindo.Accordion.html" class="">
			                	Accordion
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.AjaxHistory.html" class="">
			                	AjaxHistory
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.BrowseButton.html" class="">
			                	BrowseButton
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Cache.html" class="">
			                	Cache
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Calendar.html" class="">
			                	Calendar
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Canvas.html" class="">
			                	Canvas
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.CheckBox.html" class="">
			                	CheckBox
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.CircularRolling.html" class="">
			                	CircularRolling
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Clipboard.html" class="">
			                	Clipboard
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Component.html" class="">
			                	Component
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DataBridge.html" class="">
			                	DataBridge
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DatePicker.html" class="">
			                	DatePicker
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DefaultTextValue.html" class="">
			                	DefaultTextValue
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Dialog.html" class="">
			                	Dialog
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DragArea.html" class="">
			                	DragArea
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DropArea.html" class="">
			                	DropArea
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.DynamicTree.html" class="">
			                	DynamicTree
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Effect.html" class="">
			                	Effect
								
								

							    
						        
						            <span class="flag static" title="static"><span class="blind">static</span></span>
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.FileUploader.html" class="">
			                	FileUploader
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.FloatingLayer.html" class="">
			                	FloatingLayer
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Foggy.html" class="">
			                	Foggy
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Formatter.html" class="">
			                	Formatter
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.HTMLComponent.html" class="">
			                	HTMLComponent
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.InlineTextEdit.html" class="">
			                	InlineTextEdit
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.LayerEffect.html" class="">
			                	LayerEffect
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.LayerManager.html" class="">
			                	LayerManager
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.LayerPosition.html" class="">
			                	LayerPosition
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.LazyLoading.html" class="">
			                	LazyLoading
								
								

							    
						        
						            <span class="flag static" title="static"><span class="blind">static</span></span>
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.ModalDialog.html" class="">
			                	ModalDialog
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.MouseGesture.html" class="">
			                	MouseGesture
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.MultipleAjaxRequest.html" class="">
			                	MultipleAjaxRequest
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.NumberFormatter.html" class="">
			                	NumberFormatter
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.NumericStepper.html" class="">
			                	NumericStepper
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Pagination.html" class="">
			                	Pagination
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Rolling.html" class="">
			                	Rolling
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.RollingChart.html" class="">
			                	RollingChart
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.RolloverArea.html" class="">
			                	RolloverArea
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.RolloverClick.html" class="">
			                	RolloverClick
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.ScrollBar.html" class="">
			                	ScrollBar
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.ScrollBox.html" class="">
			                	ScrollBox
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.SelectArea.html" class="">
			                	SelectArea
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.SelectBox.html" class="">
			                	SelectBox
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Slider.html" class="">
			                	Slider
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.StarRating.html" class="">
			                	StarRating
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.TabControl.html" class="">
			                	TabControl
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.TextRange.html" class="">
			                	TextRange
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Timer.html" class="">
			                	Timer
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Transition.html" class="">
			                	Transition
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.Tree.html" class="">
			                	Tree
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.UIComponent.html" class="">
			                	UIComponent
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.UploadQueue.html" class="">
			                	UploadQueue
								
								

							    
						        
			            	</a>
			            </li>
			        
			            <li class="">
			            	<a href="../classes/jindo.WatchInput.html" class="">
			                	WatchInput
								
								

							    
						        
			            	</a>
			            </li>
			        </ul></div>
		</div>
	</div>
	<div class="scrollbar-v">
		<div class="scrollbar-button-up"></div>
		<div class="scrollbar-track">
			<div class="scrollbar-thumb" style="top: 0px; height: 222px; "></div>
		</div>
		<div class="scrollbar-button-down"></div>
	</div>
</div>


<button type="button" title="펼치기" class="btn_open">바로가기 열기<span class="ic"></span></button>
<button type="button" title="접기" class="btn_close">바로가기 닫기<span class="ic"></span></button>

		</div>
		<!-- // left-columns -->

		<!-- main content -->
		<div id="main">
			<div class="main_fix">
				<div class="content">
	
	<h1 class="blind">source/jindo.CheckBox.js</h1>
	<div class="tc-panel first">
		<dl class="relation">
			<dt>파일명</dt>
			<dd>jindo.CheckBox.js</dd>
			<dt>경로</dt>
			<dd>source/</dd>
		</dl>
		<div id="file" class="file">
		    <pre class="code prettyprint linenums">/**
	@fileOverview&nbsp;체크박스나&nbsp;라디오버튼의&nbsp;디자인을&nbsp;대체하기&nbsp;위한&nbsp;HTML&nbsp;Component&nbsp;
	@author&nbsp;hooriza,&nbsp;modified&nbsp;by&nbsp;senxation
	@version&nbsp;#__VERSION__#
**/

/**
	jindo.CheckBox&nbsp;컴포넌트는&nbsp;Checkbox/Radio&nbsp;Button&nbsp;컨트롤의&nbsp;디자인을&nbsp;커스터마이징합니다.
	
	@class&nbsp;jindo.CheckBox
	@extends&nbsp;jindo.HTMLComponent
	
	@keyword&nbsp;input,&nbsp;checkbox,&nbsp;체크박스,&nbsp;디자인
**/
jindo.CheckBox&nbsp;=&nbsp;jindo.$Class({
	/**&nbsp;@lends&nbsp;jindo.CheckBox.prototype&nbsp;*/
	sTagName&nbsp;:&nbsp;&#39;input[type=checkbox]&#39;,&nbsp;//&#39;input[type=radio]&#39;
	
	/**
		CheckBox&nbsp;컴포넌트를&nbsp;생성한다.
		@constructor&nbsp;
		@param&nbsp;{String&nbsp;|&nbsp;HTMLElement}&nbsp;el&nbsp;input[type=checkbox]&nbsp;또는&nbsp;input[type=radio]를&nbsp;감싸고&nbsp;있는&nbsp;엘리먼트&nbsp;혹은&nbsp;그&nbsp;id
		@param&nbsp;{Object}&nbsp;[htOption]&nbsp;옵션&nbsp;객체
			@param&nbsp;{String}&nbsp;[htOption.sClassPrefix=&quot;checkbox-&quot;]&nbsp;클래스명의&nbsp;접두어.&nbsp;[prefix]mark,&nbsp;[prefix]focused,&nbsp;[prefix]applied,&nbsp;[prefix]disabled,&nbsp;[prefix]checked&nbsp;클래스명이&nbsp;사용된다.
		@remark&nbsp;input[type=checkbox],&nbsp;input[type=radio]에&nbsp;이벤트를&nbsp;직접&nbsp;바인딩해서&nbsp;사용할&nbsp;경우&nbsp;제대로&nbsp;동작하지&nbsp;않음
		@example
			&lt;span&nbsp;id=&quot;ajax_checkbox&quot;&gt;
				&lt;span&nbsp;class=&quot;ajax_checkbox_mark&quot;&gt;&lt;/span&gt;&lt;input&nbsp;type=&quot;checkbox&quot;&nbsp;name=&quot;c&quot;&nbsp;id=&quot;c1&quot;&nbsp;/&gt;
			&lt;/span&gt;&nbsp;
			&lt;label&nbsp;for=&quot;c1&quot;&gt;첫번째&lt;/label&gt;
			
			&lt;script&nbsp;type=&quot;text/javascript&quot;&nbsp;language=&quot;javascript&quot;&gt;
				var&nbsp;oCheckBox&nbsp;=&nbsp;jindo.CheckBox(jindo.$(&#39;ajax_checkbox&#39;),&nbsp;{&nbsp;sClassPrefix&nbsp;:&nbsp;&#39;checkbox-&#39;&nbsp;}).attach({
					beforeChange&nbsp;:&nbsp;function(oCustomEvent)&nbsp;{
						//전달되는&nbsp;이벤트객체&nbsp;oCustomEvent&nbsp;=&nbsp;{
						//	bChecked&nbsp;:&nbsp;(Boolean)&nbsp;체크&nbsp;여부
						//}
						//oCustomEvent.stop();&nbsp;수행시&nbsp;체크/해제&nbsp;되지&nbsp;않음
					},
					change&nbsp;:&nbsp;function(oCustomEvent)&nbsp;{
						//전달되는&nbsp;이벤트객체&nbsp;oCustomEvent&nbsp;=&nbsp;{
						//	bChecked&nbsp;:&nbsp;(Boolean)&nbsp;체크&nbsp;여부
						//}
					}
				});
			&lt;/script&gt;
	**/
	$init&nbsp;:&nbsp;function(el,&nbsp;htOption)&nbsp;{
		this.option({
			sClassPrefix&nbsp;:&nbsp;&#39;checkbox-&#39;
		});
		
		this.option(htOption&nbsp;||&nbsp;{});

		this._elWrapper&nbsp;=&nbsp;jindo.$(el);
		this._welWrapper&nbsp;=&nbsp;jindo.$Element(el);
		this._assignHTMLElements();
		
		this.wfOnClickInput&nbsp;=&nbsp;jindo.$Fn(this._onClickInput,&nbsp;this);
		this.wfOnClickWrapper&nbsp;=&nbsp;jindo.$Fn(this._onClickWrapper,&nbsp;this);
		this.wfOnFocusInput&nbsp;=&nbsp;jindo.$Fn(this._onFocusInput,&nbsp;this);
		this.wfOnBlurInput&nbsp;=&nbsp;jindo.$Fn(this._onBlurInput,&nbsp;this);
		
		this.activate();
		this.paint();
	},
	
	_assignHTMLElements&nbsp;:&nbsp;function()&nbsp;{
		var&nbsp;elWrapper&nbsp;=&nbsp;this._elWrapper;
		/**
			해당&nbsp;input[type=checkbox]&nbsp;엘리먼트
			@ignore
		**/
		this._elInput&nbsp;=&nbsp;jindo.$$.getSingle(&#39;input&#39;,&nbsp;elWrapper);
		/**
			해당&nbsp;input[type=checkbox]&nbsp;엘리먼트를&nbsp;대체할&nbsp;엘리먼트
			@ignore
		**/
		if&nbsp;(this._elInput.type&nbsp;==&nbsp;&quot;radio&quot;)&nbsp;{
			this.sTagName&nbsp;=&nbsp;&quot;input[type=radio]&quot;;
			this.option(&quot;sClassPrefix&quot;,&nbsp;&quot;radio-&quot;);
		}
		var&nbsp;sPrefix&nbsp;=&nbsp;this.option(&#39;sClassPrefix&#39;);
		this._elSubstitute&nbsp;=&nbsp;jindo.$$.getSingle(&quot;.&quot;&nbsp;+&nbsp;sPrefix&nbsp;+&nbsp;&quot;mark&quot;,&nbsp;elWrapper);
		this._welSubstitute&nbsp;=&nbsp;jindo.$Element(this._elSubstitute);
	},
	
	/**
		Input&nbsp;엘리먼트를&nbsp;구한다.
		
		@method&nbsp;getInput
		@return&nbsp;{HTMLElement}&nbsp;Input&nbsp;엘리먼트
	**/
	getInput&nbsp;:&nbsp;function()&nbsp;{
		return&nbsp;this._elInput;
	},
	
	/**
		Input&nbsp;엘리먼트의&nbsp;Check&nbsp;여부를&nbsp;가져온다.
		
		@method&nbsp;getChecked
		@return&nbsp;{Boolean}&nbsp;Input&nbsp;엘리먼트의&nbsp;Check&nbsp;여부
	**/
	getChecked&nbsp;:&nbsp;function()&nbsp;{
		return&nbsp;this.getInput().checked;
	},
	
	/**
		Input&nbsp;엘리먼트의&nbsp;Check&nbsp;여부를&nbsp;설정한다.
		
		@method&nbsp;setChecked
		@param&nbsp;{Boolean}&nbsp;b&nbsp;체크&nbsp;할지&nbsp;여부&nbsp;(true&nbsp;:&nbsp;체크,&nbsp;false&nbsp;:&nbsp;체크안함)
		@param&nbsp;{Boolean}&nbsp;[bFireEvent=true]&nbsp;change&nbsp;이벤트의&nbsp;발생&nbsp;여부
		@return&nbsp;{this}&nbsp;Input&nbsp;엘리먼트의&nbsp;Check&nbsp;여부를&nbsp;설정한&nbsp;인스턴스&nbsp;자신
	**/
	setChecked&nbsp;:&nbsp;function(b,&nbsp;bFireEvent)&nbsp;{
		if&nbsp;(typeof&nbsp;bFireEvent&nbsp;==&nbsp;&quot;undefined&quot;)&nbsp;{
			bFireEvent&nbsp;=&nbsp;true;
		}
		
		var&nbsp;elInput&nbsp;=&nbsp;this.getInput(),
			bValue&nbsp;=&nbsp;elInput.checked;
		
		if&nbsp;(bValue&nbsp;!=&nbsp;b)&nbsp;{
			elInput.checked&nbsp;=&nbsp;b;
			
			switch&nbsp;(elInput.type)&nbsp;{
				case&nbsp;&quot;checkbox&quot;&nbsp;:
					this.paint();
				break;
				case&nbsp;&quot;radio&quot;&nbsp;:
					var&nbsp;self&nbsp;=&nbsp;this;
					//name이&nbsp;같은&nbsp;input만&nbsp;다시&nbsp;그림
					jindo.$A(this.constructor._aInstances).forEach(function(oRadioButton){
						if&nbsp;(oRadioButton.getInput().name&nbsp;==&nbsp;elInput.name)&nbsp;{
							oRadioButton.paint();
						}&nbsp;
					});
				break;
			}
			
			if&nbsp;(bFireEvent)&nbsp;{
				this._fireChangeEvent(b);
			}
		}
		
		return&nbsp;this;
	},
	
	_fireChangeEvent&nbsp;:&nbsp;function(b)&nbsp;{
		/**
			&nbsp;값이&nbsp;변경되면&nbsp;발생
			
			@event&nbsp;change
			@param&nbsp;{String}&nbsp;커스텀&nbsp;이벤트명
			@param&nbsp;{Boolean}&nbsp;bChecked&nbsp;체크&nbsp;상태&nbsp;값
			@example
				//&nbsp;change&nbsp;커스텀&nbsp;이벤트&nbsp;핸들링&nbsp;예제
				oCheckBox.attach(&quot;change&quot;,&nbsp;function(oCustomEvent)&nbsp;{&nbsp;...&nbsp;});
		**/
		this.fireEvent(&quot;change&quot;,&nbsp;{
			bChecked&nbsp;:&nbsp;b
		});
	},
	
	/**
		CheckBox를&nbsp;enable&nbsp;시킨다.
		
		@method&nbsp;enable
		@return&nbsp;{this}&nbsp;CheckBox를&nbsp;enable&nbsp;시킨&nbsp;인스턴스&nbsp;자신
	**/
	enable&nbsp;:&nbsp;function()&nbsp;{
		this.getInput().disabled&nbsp;=&nbsp;false;
		this.paint();
		return&nbsp;this;
	},
	
	/**
		CheckBox를&nbsp;disable&nbsp;시킨다.
		
		@method&nbsp;disable
		@return&nbsp;{this}&nbsp;CheckBox를&nbsp;disable&nbsp;시킨&nbsp;인스턴스&nbsp;자신
	**/
	disable&nbsp;:&nbsp;function()&nbsp;{
		this.getInput().disabled&nbsp;=&nbsp;true;
		this.paint();
		return&nbsp;this;
	},
	
	_onClickInput&nbsp;:&nbsp;function(we)&nbsp;{
		we.stop(jindo.$Event.CANCEL_DEFAULT);
		
		var&nbsp;self&nbsp;=&nbsp;this;
		setTimeout(function(){&nbsp;//Scope&nbsp;안에서&nbsp;input[type=checkbox]의&nbsp;checked가&nbsp;이상함!
			self._welWrapper.fireEvent(&quot;click&quot;);	
		},&nbsp;1);
	},
	
	_onClickWrapper&nbsp;:&nbsp;function(we)&nbsp;{
		var&nbsp;elInput&nbsp;=&nbsp;this._elInput;
		if&nbsp;(elInput.disabled&nbsp;||&nbsp;we.element&nbsp;===&nbsp;elInput)&nbsp;{&nbsp;/*&nbsp;Diabled거나&nbsp;Label을&nbsp;클릭했거나&nbsp;키보드&nbsp;스페이스로&nbsp;직접&nbsp;선택했을&nbsp;때&nbsp;*/
			return;
		}
		elInput.focus();
		
		/**
			&nbsp;값이&nbsp;변경되기&nbsp;전에&nbsp;발생
			
			@event&nbsp;beforeChange
			@param&nbsp;{String}&nbsp;sType&nbsp;커스텀&nbsp;이벤트명
			@param&nbsp;{Boolean}&nbsp;bChecked&nbsp;체크&nbsp;상태&nbsp;값
			@param&nbsp;{Function}&nbsp;stop&nbsp;stop&nbsp;함수를&nbsp;실행하게&nbsp;되면&nbsp;값이&nbsp;변경되지&nbsp;않는다.
			@example
				//&nbsp;beforeChange&nbsp;커스텀&nbsp;이벤트&nbsp;핸들링&nbsp;예제
				oCheckBox.attach(&quot;beforeChange&quot;,&nbsp;function(oCustomEvent)&nbsp;{&nbsp;...&nbsp;});
		**/
		if&nbsp;(this.fireEvent(&quot;beforeChange&quot;,&nbsp;{&nbsp;bChecked&nbsp;:&nbsp;elInput.checked&nbsp;}))&nbsp;{
			this.setChecked(((elInput.type&nbsp;==&nbsp;&quot;radio&quot;)&nbsp;?&nbsp;true&nbsp;:&nbsp;!elInput.checked));
		}
	},
	
	_onFocusInput&nbsp;:&nbsp;function(we)&nbsp;{
		this._welWrapper.addClass(this.option(&#39;sClassPrefix&#39;)&nbsp;+&nbsp;&#39;focused&#39;);&nbsp;
	},
	
	_onBlurInput&nbsp;:&nbsp;function(we)&nbsp;{
		this._welWrapper.removeClass(this.option(&#39;sClassPrefix&#39;)&nbsp;+&nbsp;&#39;focused&#39;);
	},
	
	/**
		컴포넌트를&nbsp;활성화한다.
	**/
	_onActivate&nbsp;:&nbsp;function()&nbsp;{
		
		this.$super._onActivate();

		this._welWrapper.addClass(this.option(&#39;sClassPrefix&#39;)&nbsp;+&nbsp;&#39;applied&#39;);
		
		this.wfOnClickInput.attach(this._elInput,&nbsp;&#39;click&#39;);
		this.wfOnClickWrapper.attach(this._elWrapper,&nbsp;&#39;click&#39;);
		this.wfOnFocusInput.attach(this._elInput,&nbsp;&#39;focus&#39;);
		this.wfOnBlurInput.attach(this._elInput,&nbsp;&#39;blur&#39;);

	},
	
	/**
		컴포넌트를&nbsp;비활성화한다.
	**/
	_onDeactivate&nbsp;:&nbsp;function()&nbsp;{
		
		this._welWrapper.removeClass(this.option(&#39;sClassPrefix&#39;)&nbsp;+&nbsp;&#39;applied&#39;);
		
		this.wfOnClickInput.detach(this._elInput,&nbsp;&#39;click&#39;);
		this.wfOnClickWrapper.detach(this._elWrapper,&nbsp;&#39;click&#39;);
		this.wfOnFocusInput.detach(this._elInput,&nbsp;&#39;focus&#39;);
		this.wfOnBlurInput.detach(this._elInput,&nbsp;&#39;blur&#39;);
		
		this.$super._onDeactivate();
		
	},
	
	/**
		컴포넌트를&nbsp;새로&nbsp;그려준다.&nbsp;(HTMLComponent&nbsp;공통메서드)
	**/
	_onPaint&nbsp;:&nbsp;function()&nbsp;{
		var&nbsp;sPrefix&nbsp;=&nbsp;this.option(&#39;sClassPrefix&#39;);
		
		if&nbsp;(this._elInput.disabled){
			this._welWrapper.addClass(sPrefix&nbsp;+&nbsp;&#39;disabled&#39;);	
		}&nbsp;else&nbsp;{
			this._welWrapper.removeClass(sPrefix&nbsp;+&nbsp;&#39;disabled&#39;);
		}
		
		if&nbsp;(this._elInput.checked){
			this._welSubstitute.addClass(sPrefix&nbsp;+&nbsp;&#39;checked&#39;);	
		}&nbsp;else&nbsp;{
			this._welSubstitute.removeClass(sPrefix&nbsp;+&nbsp;&#39;checked&#39;);
		}
	}
	
}).extend(jindo.HTMLComponent);
</pre>
		</div>
	</div>
</div>

			</div>
		</div>
		<!-- // main content -->

	</div>
	<!-- // container -->

	<!-- footer -->
	<div id="footer">
		<p>Copyright ©<a href="http://nhncorp.com/" target="_blank">NHN Corp.</a> Platform Ajax Team. All Rights Reserved.</p>
	</div>
	<!-- // footer -->

</div>
<!-- // wrap -->

<style type="text/css">

	.item {
		transition:background .2s linear;
		-webkit-transition:background .2s linear;
		-moz-transition:background .2s linear;
		-o-transition:background .2s linear;
		-ms-transition:background .2s linear;
	}
	
	.highlight {
		background-color:#ffffd8 !important;
	}
	
	li.selected a.highlight {
		background-color:#aa8 !important;
	}
	
	.hide-deprecated .deprecated-item, .hide-inherited .inherited-item, .private {
		display:none;
	}
	
	.scrollbar-v, .scrollbar-h { display:none; }
	.scrollbar-show { display:block; }
	
	.api-page .tbl_fold .more_history { display:none; }
	
	/* FILE */
	.file pre.code {
		border:1px solid #ccc;
		padding:0;
	}
	
	.file ol {
		padding-left: 4em;
		background-color: #f9f9f9;
	}

	.file ol li {
		list-style: decimal;
		border-left:1px solid #ccc;
		padding:2px 4px;
	}
	
	.file li.L1, .file li.L3, .file li.L5, .file li.L7, .file li.L9 {
		background-color: #f9f9f9;	
	}

	.file li.L0, .file li.L2, .file li.L4, .file li.L6, .file li.L8 { 
		background-color: #f0f0f0;
	}
	
</style>
<script type="text/javascript" src="../assets/prettify/prettify-min.js"></script>
<script type="text/javascript" src="../assets/hash.js"></script>
<script type="text/javascript" src="../assets/api-list.js"></script>
<script type="text/javascript" src="../assets/api-search.js"></script>
<script type="text/javascript" src="../assets/../api.js?callback=APISearch.setData"></script>
<script type="text/javascript">
	var projectRoot = "../";
	var projectAssets = "../assets";
	
    apiDocs(projectAssets);	
</script>
</body>
</html>